package com.etime.perfectschool.service.impl;

import com.etime.perfectschool.mapper.FoodCommentsMapper;
import com.etime.perfectschool.pojo.FoodComments;
import com.etime.perfectschool.service.FoodCommentsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FoodCommentsServiceImpl implements FoodCommentsService {

    @Autowired
    private FoodCommentsMapper foodCommentsMapper;

    @Override
    public List<FoodComments> getAllFoodComments(int foodId) {
        return null;
    }

    @Override
    public boolean deleteFoodCommentsByfoodId(int foodId) {
        return deleteFoodCommentsByfoodId(foodId);
    }

    @Override
    public int addFoodComments(FoodComments foodComments) {
        return foodCommentsMapper.insert(foodComments);
    }
}
